package com.ds.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: SpringBoot
 * @description:
 * @author: Dawson.Zhang
 * @create: 2020-04-15
 **/
@RestController
public class HelloController {
    public static final Logger log = LoggerFactory.getLogger(HelloController.class);
    @RequestMapping("/hello")
    public String hello(){
        log.trace("这个是traceLog");
        log.debug("这个是debugLog");
        log.info("这个是infoLog");
        log.warn("这个是warnLog");
        log.error("这个是errorLog");
        return "你好";
    }
}
